package com.example.rwq_test.anno.customAnno.EventAnnotation.event;

import com.example.rwq_test.anno.customAnno.EventAnnotation.EventTypeEnum;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * @Description 事件
 *
 * @Author renweiqiang
 * @Date 2024/4/28 上午10:50
 */
@Getter
@Setter
@ToString
public class Event {
    /**
     * 事件id
     */
    private Long id;
    /**
     * 事件类型
     */
    @JsonProperty("event_type")
    private EventTypeEnum eventType;

    public Event(Long id, EventTypeEnum eventType) {
        this.id = id;
        this.eventType = eventType;
    }

    public Long getId() {
        return id;
    }

    public EventTypeEnum getEventType() {
        return eventType;
    }
}
